package com.jsh.erp.api;

import com.jsh.erp.service.supplier.SupplierService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.math.BigDecimal;

@RestController
@RequestMapping("/api/supplierApi")
public class SupplierApi {

    @Resource
    private SupplierService supplierService;

    @PostMapping
    public int updateAdvanceIn(Long supplierId, BigDecimal advanceIn)throws Exception{
        return supplierService.updateAdvanceIn(supplierId, advanceIn);
    }
}
